import logging

import redis

from tools.constant.redis_keys import *


def redis_client_instance():
    logging.info("init redis client [%s][%s][%s]"%(REDIS_HOST, REDIS_PORT, REDIS_DB))
    return redis.StrictRedis(host=REDIS_HOST, port=REDIS_PORT, db=REDIS_DB, password=REDIS_PWD)
